const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: "./",
  devServer: {
    proxy: {
      '/api': {
        // 本地服务器代理
        target: 'http://localhost:3000',
        // 远程服务器代理
        // target: 'http://47.92.27.111:3000',
        changeOrigion: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },

})
